import { service } from './request.js'

//食堂管理接口
export default {
  //查询所有食堂组织
  getAreaTree(data) {
    return service({
      url: `lyitech/hire/sysArea/getAreaTree`,
      method: 'get',
      data,
    })
  },
  //查询
  searchAreaTree(data) {
    return service({
      url: `lyitech/hire/sysArea/list`,
      method: 'get',
      data,
    })
  },
  //新增
  saveAreaInfo(data) {
    return service({
      url: `lyitech/hire/sysArea/save`,
      method: 'post',
      data,
    })
  },
  //查看
  checkAreaInfo(id) {
    return service({
      url: `lyitech/hire/sysArea/info/${id}`,
      method: 'get',
    })
  },

  //编辑
  updateAreaInfo(data) {
    return service({
      url: `lyitech/hire/sysArea/update`,
      method: 'post',
      data,
    })
  },
  //删除
  deleteAreaInfo(data) {
    return service({
      url: `lyitech/hire/sysArea/delete`,
      method: 'post',
      data,
    })
  },
}
